<template>
  <div class="home">
    <Top />
    <Loginset :font= font></Loginset>
     <div class="BG">
        <img src="../assets/images/bg.png" alt="">
        <kuang @xiugai="gai" @gaiheard="newye" @login="setlogin" />
    </div>
    <ping></ping>
  </div>
</template>

<script>
// @ is an alias to /src
import Top from "@/components/top.vue";
import Ping from "@/components/pingpai.vue";
import Loginset from "@/components/BX-loginset.vue";
import kuang from "@/components/BX-loginKuang.vue";
export default {
  components: {
    Top,
    Ping,
    Loginset,
    kuang,
  },
  data(){
      return{
          font:"会员登录"
      }
  },
  created() {
    // var _this = this;
    // var url = "http://localhost:3000";
    // window.console.log("1")
    // this.$axios
    //   .post(url + "/login/pa",{
    //     data:"11111"
    //   })
    //   .then(function(response) {
    //     window.console.log(response)
    //     if (response.data.code == "200") {
    //       _this.pman = response.data.mydata;
    //       window.console.log(response.data);
    //     }
    //   })
    //   .catch(function(error) {
    //     _this.dataMsg = error;
    //     window.console.log(error);
    //   });
  },
  methods:{
    gai(){
      this.font="找回密码"
    },
     newye(){
      this.font="会员注册"
    },
    setlogin(){
      this.font="会员登录"
    }
  }
};
</script>
<style  scoped>
.BG {
    width:100%;
    height:400px;
    position: relative;
}
.BG img{
    width:100%;
    height: 100%;
}
</style>
